Detect bugs in this asp.net VB master page , default.aspx and detail.aspx page codes. [closed]

Posted by ITGURU2011 on Stack Overflow See other posts from Stack Overflow or by ITGURU2011
Published on 2010-12-29T00:08:17Z Indexed on 2010/12/29 14:53 UTC
Read the original article Hit count: 254

Filed under:
|

please help me in detecting some bugs, cosmetic issues, information design issues, programming issues in the Below code of master page and default.aspx page and detail.aspx page. also suggest me some way to make it work better. i seprated all the three pages with the names.


                                     Master Page 

<%@ Master Language="VB" CodeFile="Limo.master.vb" Inherits="Limo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
    <asp:ContentPlaceHolder id="ContentPlaceHolder2" runat="server">

        </asp:ContentPlaceHolder>
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        .style3
        {
            color: #0000CC;
            font-family: Constantia;
            font-size: xx-large;
            font-weight: normal;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="ExternalDiv">
    <div class="HeaderDiv">
        <h1 class="style3">
                        Limousines</h1>
                <p class="style3">
                    &nbsp;</p>
                <div class="MenuDiv">
                </div>
                <div class="ContentDiv">
                    <asp:ContentPlaceHolder id="ContentPlaceHolder1" runat="server">
                    </asp:ContentPlaceHolder>
                </div>
        </div>

    </div>
    </form>
</body>
</html>

                                   default.aspx page

<%@ Page Language="VB" MasterPageFile="~/Limo.master" AutoEventWireup="false" CodeFile="default.aspx.vb" Inherits="list" title="List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="height: 1343px; width: 727px">
        <asp:GridView ID="GridView1" runat="server" AllowSorting="True" 
            AutoGenerateColumns="False" DataSourceID="SqlDataSource2" 

            style="top: 134px; left: 12px; position: absolute; height: 1337px; width: 531px">
            <Columns>
                <asp:BoundField DataField="Limo_Types" HeaderText="Limo_Types" 
                    SortExpression="Limo_Types" />
                <asp:HyperLinkField DataNavigateUrlFields="Limo_Types" 
                    DataNavigateUrlFormatString="Details.aspx?tag={0}" DataTextField="Limo_Types" 
                    HeaderText="Click for Detail" />
                <asp:ImageField DataImageUrlField="Images" 
                    DataImageUrlFormatString="images/{0}" HeaderImageUrl="~/images/6.jpg" 
                    HeaderText="Thumbnail">
                    <ControlStyle Height="200px" Width="200px" />
                    <HeaderStyle Height="200px" Width="200px" />
                    <ItemStyle Height="200px" Width="200px" />
                </asp:ImageField>
            </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
            ConnectionString="<%$ ConnectionStrings:ConnectionString5 %>" 
            ProviderName="<%$ ConnectionStrings:ConnectionString5.ProviderName %>" 
            SelectCommand="SELECT [Limo_Types], [Images] FROM [tag]">
        </asp:SqlDataSource>
</div>
</asp:Content>

                                   details.aspx page

<%@ Page Language="VB" MasterPageFile="~/Limo.master" AutoEventWireup="false" CodeFile="Details.aspx.vb" Inherits="Details" title="Details Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
    DataSourceID="SqlDataSource1" AllowSorting="True" BackColor="White" 
    BorderColor="#999999" BorderStyle="Solid" BorderWidth="1px" CellPadding="3" 
    ForeColor="Black" GridLines="Vertical">
    <Columns>
        <asp:BoundField DataField="Limo_Types" HeaderText="Limo_Types" 
            SortExpression="Limo_Types" />
        <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
        <asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" />
        <asp:BoundField DataField="Description" HeaderText="Description" 
            SortExpression="Description" />
        <asp:BoundField DataField="Color" HeaderText="Color" SortExpression="Color" />
        <asp:ImageField DataImageUrlField="Image" DataImageUrlFormatString="images/{0}"
            HeaderImageUrl="~/App_Data/images/1.jpg" HeaderText="Image" 
            AccessibleHeaderText="Image" AlternateText="Image">
            <ControlStyle Height="300px" Width="300px" />
        </asp:ImageField>
    </Columns>
    <FooterStyle BackColor="#CCCCCC" />
    <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
    <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
    <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
    <AlternatingRowStyle BackColor="#CCCCCC" />
</asp:GridView>
<asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
    ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
    SelectCommand="SELECT [Limo_Types], [Name], [Price], [Image], [Description], [Color] FROM [Query1] WHERE ([Limo_Types] = ?)">
    <SelectParameters>
        <asp:QueryStringParameter Name="Limo_Types" QueryStringField="tag" 
            Type="String" />
    </SelectParameters>
</asp:SqlDataSource>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
</asp:Content>

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about vb.net